package com.yan.command;

import java.util.ArrayList;
import java.util.List;

public class PrepareCommand implements Command {
    private List<NamedGroup> groups = new ArrayList<NamedGroup>() {{
        add(new UIGroup());
        add(new RequirementGroup());
        add(new DevelopGroup());
    }};

    @Override
    public void exec() {
        groups.forEach(NamedGroup::prepare);
    }
}
